package com.net.shop.car.manager.api.volley.request;

import org.json.JSONException;
import org.json.JSONObject;

import com.net.shop.car.manager.api.volley.Request;
import com.net.shop.car.manager.utils.Constants;
import com.net.shop.car.manager.utils.LogUtils;
import com.net.shop.car.manager.utils.Constants.ServiceType;

public class GetSellersTWO extends Request {

	private final ServiceType serviceType;
	private final String sellerId;
	
	public GetSellersTWO(ServiceType type,String sellerId) {
		super(Constants.SELLER_TWO);
		this.serviceType = type;
		this.sellerId = sellerId;
	}

	@Override
	public void extensionJSON(JSONObject jsonObject) {
		try {
			jsonObject.put("dic_type", serviceType.description);
			jsonObject.put("sellerid", sellerId);
		} catch (JSONException e) {
			LogUtils.e(e.getMessage());
		}
	}

}
